package com.ca.project.OSS.Config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClient;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @PACKAGE_NAME: com.ca.project.OSS
 * @NAME: AliyunConfig
 * @USER: ASUS
 * @DATE: 31/12/2024
 * @TIME: 上午11:35
 **/
//@Configuration
//@Data
//public class AliYunConfig {
//
//    @Value("${aliYun.endpoint}")
//    private String endpoint;
//    @Value("${aliYun.accessKeyId}")
//    private String accessKeyId;
//    @Value("${aliYun.Secret}")
//    private String secret;
//    @Value("${aliYun.bucketName}")
//    private String bucketName;
//    @Value("${aliYun.url}")
//    private String url;
//
//    @Bean
//    public OSS OSSClient(){
//        return new OSSClient(endpoint,accessKeyId,secret);
//    }
//}
